package com.zhj.helloframework.mvc.annotation;

import com.zhj.helloframework.mvc.type.RequestMethod;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author: zhj
 * @Description: 注解请求路径和方法
 * @Date: 2021/10/12 18:49
 * @Version: 1.0
 */
@Target({ElementType.TYPE,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface RequestMapping {
    // 请求路径
    String value() default "";

    // 请求方法
    RequestMethod method() default RequestMethod.GET;
}
